package com.spzx.user.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.spzx.common.core.annotation.Excel;
import com.spzx.common.core.web.domain.BaseEntity;

@Data
@Schema(description = "用户地址")
public class UserAddress extends BaseEntity{

    @Excel(name = "用户ID")
    @Schema(description = "用户ID")
    private Long userId;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @Schema(description = "${comment}")
    private String name;

    @Excel(name = "电话")
    @Schema(description = "电话")
    private String phone;

    @Excel(name = "标签名称")
    @Schema(description = "标签名称")
    private String tagName;

    @Excel(name = "省code")
    @Schema(description = "省code")
    private String provinceCode;

    @Excel(name = "省名称")
    @Schema(description = "省名称")
    @TableField(exist = false)
    private String provinceName;

    @Excel(name = "市code")
    @Schema(description = "市code")
    private String cityCode;

    @Excel(name = "市名称")
    @Schema(description = "市名称")
    @TableField(exist = false)
    private String cityName;

    @Excel(name = "区code")
    @Schema(description = "区code")
    private String districtCode;

    @Excel(name = "区名称")
    @Schema(description = "区名称")
    @TableField(exist = false)
    private String districtName;

    @Excel(name = "详细地址")
    @Schema(description = "详细地址")
    private String address;

    @Excel(name = "完整地址")
    @Schema(description = "完整地址")
    private String fullAddress;

    @Excel(name = "是否默认地址", readConverterExp = "0=：否,1=：是")
    @Schema(description = "是否默认地址")
    private Long isDefault;

}
